package com.nightpiter.view.graphics;

import com.nightpiter.view.graphics.abstaractions.AbstractPaint;
import com.nightpiter.view.graphics.abstaractions.Delegator;
import com.nightpiter.view.graphics.factories.PaintFactory;

public class Paint extends Delegator<AbstractPaint> implements AbstractPaint {

	public Paint() {
		setDelegate(PaintFactory.getFactory().create());
	}

	public int getColor() {
		return getDelegate().getColor();
	}

	public void setAlpha(int a) {
		getDelegate().setAlpha(a);
	}

	public void setAntiAlias(boolean aa) {
		getDelegate().setAntiAlias(aa);
	}

	public void setARGB(int a, int r, int g, int b) {
		getDelegate().setARGB(a, r, g, b);
	}

	public void setColor(int color) {
		getDelegate().setColor(color);
	}

	public PathEffect setPathEffect(PathEffect effect) {
		if (effect == null)
			effect = new PathEffect();
		return getDelegate().setPathEffect(effect);
	}

	public void setShader(Shader shader) {
		getDelegate().setShader(shader);
	}

	public void setStrokeCap(Cap capFlag) {
		getDelegate().setStrokeCap(capFlag);
	}

	public void setStrokeWidth(float width) {
		getDelegate().setStrokeWidth(width);
	}

	public void setStyle(Style style) {
		getDelegate().setStyle(style);
	}

	public void setTextSize(float textSize) {
		getDelegate().setTextSize(textSize);
	}

	public float measureText(String text) {
		return getDelegate().measureText(text);
	}

	public Cap getStrokeCap() {
		return getDelegate().getStrokeCap();
	}

	public float getStrokeWidth() {
		return getDelegate().getStrokeWidth();
	}

	public boolean isAntiAlias() {
		return getDelegate().isAntiAlias();
	}

	public float getTextSize() {
		return getDelegate().getTextSize();
	}

	public Style getStyle() {
		return getDelegate().getStyle();
	}

	public PathEffect getPathEffect() {
		return getDelegate().getPathEffect();
	}

	public Shader getShader() {
		return getDelegate().getShader();
	}
	
}
